package redisWriteReadSeparation;

public class RedisUtils {

	@JedisPollSelector("masterRedis")
	public String setString(final String key, final String value) {
		String ret = DynamicJedisPoolHolder.getJedisPool().getResource().set(key, value);
		return ret;
	}

	@JedisPollSelector("slaveRedis")
	public String get(final String key) {
		String ret = DynamicJedisPoolHolder.getJedisPool().getResource().get(key);
		return ret;
	}
}
